package com.example.drools_springboot_demo.model;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by DongChenchen on 2018/5/2 0002
 * 量化交易
 * 一个QuantitativeTs对象,对应一种货币
 */
public class QuantitativeTs {
    private String coin_code;//货币
    //10h内，各个平台的 交易记录 用于 回流判定  （同一个币种的交易记录）
    private List<ExchangeTransaction> transactionHis;

    //程度对应大的跟程度大的匹配 匹配结果(币少的交易所（内部依赖所有反比例交易所）)
    private List<ExchangeTransaction> exchanges_low;

    //返回结果：
    Map<ExchangeTransaction,ExchangeTransaction> result=new HashMap<>(); //默认  map<买币，卖币>

    //标志
    private Integer flag1=0;//规则1  回流判定 执行标志
    private Integer flag2=0;//规则2  执行标志



    public List<ExchangeTransaction> getTransactionHis() {
        return transactionHis;
    }

    public void setTransactionHis(List<ExchangeTransaction> transactionHis) {
        this.transactionHis = transactionHis;
    }

    public Integer getFlag1() {
        return flag1;
    }

    public void setFlag1(Integer flag1) {
        this.flag1 = flag1;
    }

    public Integer getFlag2() {
        return flag2;
    }

    public void setFlag2(Integer flag2) {
        this.flag2 = flag2;
    }

    public List<ExchangeTransaction> getExchanges_low() {
        return exchanges_low;
    }

    public void setExchanges_low(List<ExchangeTransaction> exchanges_low) {
        this.exchanges_low = exchanges_low;
    }

    public String getCoin_code() {
        return coin_code;
    }

    public void setCoin_code(String coin_code) {
        this.coin_code = coin_code;
    }

    public Map<ExchangeTransaction, ExchangeTransaction> getResult() {
        return result;
    }

    public void setResult(Map<ExchangeTransaction, ExchangeTransaction> result) {
        this.result = result;
    }
}
